package com.plian.system.service.fr.audit;


import com.plian.system.entity.fr.audit.AuditOrganizations;
import com.plian.system.mybatis.base.BaseService;

import javax.servlet.http.HttpServletResponse;

/**
 * 内部机构管理 服务类
 *
 * @author gangan
 * @since 2019-10-09
 */
public interface IAuditOrganizationsService extends BaseService<AuditOrganizations> {


    /**
     * 校验编码
     * @param id
     * @param code
     * @param companyId
     * @return
     */
    Boolean checkIsExisted(Long id ,String code , String companyId);

//    /**
//     * 企业内审机构基本情况表
//     * @param auditOrganizationsDTO
//     * @return
//     */
//    ReportReturnVO auditAgencyBasic(AuditOrganizationsDTO auditOrganizationsDTO) throws Exception;

    /**
     * 变更
     * @param auditOrganizations
     * @return
     */
    Boolean change(AuditOrganizations auditOrganizations);
    /**
     *  生成excel文件 并返回文件名  时间戳+"-"+uuid
     * @param
     * @return
     */
    String export();
    /**
     * excel文件下载
     *
     * @param key
     * @param response
     */
    void download(String key, HttpServletResponse response);
}
